import {Component} from '@angular/core';
import {NavController, NavParams, ViewController} from 'ionic-angular';


@Component({
    selector: 'popoverPage',
    templateUrl: 'popoverPage.html'
})
export class PopOverPage {
    // constructor(public navCtrl: NavController) {
    //
    // }
    productList = {
        "productId": "", "productImg": "", "productName": ""
    }

    constructor(public navCtrl: NavController, params: NavParams, public viewCtrl: ViewController) {
        console.log('productList', params.get('productList'));
        this.productList = params.get('productList');
        console.log(this.productList)
    }

    cancelModel() {

    }

    dismiss() {
        this.viewCtrl.dismiss();
    }

    select(index) {
        console.log(index);
        this.viewCtrl.dismiss(index);
    }
}
